package com.dm.shop.service;

import com.dm.shop.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import com.dm.shop.vo.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MyBatisPlusGenerater-Saiya Wang
 * @since 2021-07-20
 */
public interface UserService extends IService<User> {
    //增
    Result addUser(User user);
    //改
    Result editUser(User user);
    //查
    Result getAllUserInfo(int page,int size);
    //删
    Result delUser(int id);

    //根据昵称模糊查找
    Result getUserByNickName(String nickname);

}
